Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(review-rating): screenshot tests #183

Merged
merged 6 commits into from
Apr 13, 2023
Merged

test(review-rating): screenshot tests #183

merged 6 commits into from
Apr 13, 2023

Conversation

nathanjamal
Copy link
Collaborator

Pull Request

Description

added screen shots tests for each rating score at each size

HEYUI-307

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation change

How do I test this

  • Add steps to test
  • in bullet point format
  • preferably you can add link to the storybook build in the PR

Checklist

Did you remember to take care of the following?

  • npm i – for new NPM dependencies.
  • npm run lint - to check for linting issues
  • npm run test - to run unit tests
  • npm run test:sh:docker - to run screenshot tests, detail instruction

New Feature / Bug Fix

  • Run unit tests to ensure all existing tests are still passing.
  • Add new passing unit tests to cover the code introduced by your pr.

Thanks for contributing!

added screen shots tests for each rating score at each size

HEYUI-307
@nathanjamal nathanjamal self-assigned this Apr 12, 2023
@auto-assign auto-assign bot requested a review from esraltintas April 12, 2023 15:02
@nathanjamal nathanjamal changed the base branch from main to HEYUI-307 April 12, 2023 15:03
@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 97.95% 1389/1418
🟢 Branches 85.16% 287/337
🟢 Functions 94.29% 99/105
🟢 Lines 98.44% 1264/1284
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / ReviewRating.tsx
100% 66.67% 100% 100%
🟢
... / useReviewRating.ts
92.86% 100% 75% 90.91%
🟢
... / reviewRatingHelpers.ts
100% 100% 100% 100%
🟢
... / ReviewRating.constants.ts
100% 100% 100% 100%

Test suite run success

301 tests passing in 44 suites.

Report generated by 🧪jest coverage report action from 5ae5ae7

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Compiled a new version demo.

@nathanjamal nathanjamal merged commit ddf3114 into HEYUI-307 Apr 13, 2023
@nathanjamal nathanjamal deleted the HEYUI-312 branch April 13, 2023 10:05
nathanjamal added a commit that referenced this pull request Apr 18, 2023
* feat(review-rating): added the ReviewRating component

Added ReviewRating a component that displays a score from 0 to 10 for a vehicle review. when the
compont scroll into the viewport it animates a dail to show the correct score. Component can render
at 4 different sizes

HEYUI-310

* feat(review-rating): add component

added component into this epic branch. updated the dics description line

HEYUI-307

* test(review-rating): add unit and snapshot tests (#182)

add unit and snapshot tests for reviewRating components and utils

HEYUI-311

* test(review-rating): update snapshot tests with constatnt ids

by default each review-rating component randomly generates an id for itself. this means that
snapshots will be invalid everytime they run. ive now given the components in the test a constant id

HEYUI-307

* test(review-rating): screenshot tests (#183)

* test(review-rating): screenshot tests

added screen shots tests for each rating score at each size

HEYUI-307

* update screenshot test

* update screenshot test

* update screenshot test

* update screenshot test

* update screenshot test

* docs(review-rating): added storybook docs and updated readme (#184)

added storybook docs, updated readme, changelog and package.json to be correct

HEYUI-313

* fix(review-rating): fix but with donut not rerendering correctly if size is changed

fix bug with donut not rerendering correctly if size is changed from S to a larger size. Plus fixed
a spelling mistake in snapshot tests

HEYUI-307

* docs(review-rating): remove all referances to Accordion

Removed references in docs and tests to Accordion, the component folder that was duplicated to make
this one

HEYUI-307

* fix(review-rating): fixed bug with bg gradient not showing if multiple reviewRatings on a page

fixed bug with bg gradient not showing if multiple reviewRatings on a page. also fixed a small
styling issue with margins

HEYUI-307

* test(header): update test shots

updated snap and screen shots

HEYUI-307
supcar pushed a commit that referenced this pull request Apr 18, 2023
# [5.9.0](v5.8.0...v5.9.0) (2023-04-18)

### Features

* **review-rating:** create component ([#181](#181)) ([cc590aa](cc590aa)), closes [#182](#182) [#183](#183) [#184](#184)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant